package app.vendorportal.api.data;

import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author Bribin
 */
@XmlRootElement(name = "product-info")
@XmlAccessorType(XmlAccessType.FIELD)
public class ProductInfo {

    @NotBlank(message = "vendor number is required")
    @XmlElement(name = "vendor-number")
    private String vendorNumber;

    @NotBlank(message = "sku is required")
    @XmlElement(name = "sku")
    private String sku;

    @XmlElement(name = "product-desc")
    private String productDesc;

    @XmlElement(name = "upc")
    private String upc;

    @NotNull(message = "active flag is required")
    @XmlElement(name = "active")
    private boolean active;

    @XmlElement(name = "vendor-sku")
    private String vendorSku;

    public String getSku() {
        return sku;
    }

    public void setSku(String sku) {
        this.sku = sku;
    }

    public String getProductDesc() {
        return productDesc;
    }

    public void setProductDesc(String productDesc) {
        this.productDesc = productDesc;
    }

    public String getUpc() {
        return upc;
    }

    public void setUpc(String upc) {
        this.upc = upc;
    }

    public String getVendorNumber() {
        return vendorNumber;
    }

    public void setVendorNumber(String vendorNumber) {
        this.vendorNumber = vendorNumber;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

    public String getVendorSku() {
        return vendorSku;
    }

    public void setVendorSku(String vendorSku) {
        this.vendorSku = vendorSku;
    }

}
